import Vue from 'vue'
import VueRouter from 'vue-router'
import emp from '../views/emp/list'

Vue.use(VueRouter)

const routes = [
  {
    path: '/emp/list',
    name: 'emp',
    component: emp
  },
  {
    path: '/dept/list',
    name: 'dept',
    component: () => import(/* webpackChunkName: "about" */ '../views/dept/list')
  }
]

const router = new VueRouter({
  routes
})

export default router
